'use strict';

const RouterService = require('../base');

class BannerService extends RouterService {
    static get modelName() {
        return 'Business.Product';
    }

    getPageInclude() {
        return [
            {
                // 关联商家
                model: this.ctx.model.Business.TicketShop,
                as: 'ticketShop',
            },
            {
                // 关联上级
                model: this.ctx.model.Business.Product,
                as: 'parent'
            },
            {
                // 关联下级
                model: this.ctx.model.Business.Product,
                as: 'children'
            },
        ]
    }
    getListInclude() {
        return this.getPageInclude();
    }

    getDetailInclude() {
        return this.getPageInclude()
    }
}

module.exports = BannerService;
